{template 'header'}

	<div id="main">
		<div class="bread">您当前的位置：<a href="{$MODULE[1][linkurl]}" title="{$AJ[sitename]}">{$AJ[sitename]}</a>&gt;<a href="{$MOD[linkurl]}">{$MOD[name]}</a>&gt;<span>小区找房</span></div>
		<div class="hslist" id="hslist">
			<h2 class="modTab">
				<a href="{$MOD[linkurl]}list.html" >区域找房</a>
				<a href="{$MODULE[1][linkurl]}map">地图找房</a>
				<a href="{$MODULE[18][linkurl]}" class="on">小区找房</a>
			</h2>
						<div class="hs_b">
                <div class="cf">
                    <span>区域：</span>
                    <p id="hs_area">
                        <a href="javascript:" class="hs_hide"><u class="hs_mo">更多</u><u class="hs_le">收起</u></a>
                       <a {if empty($areaid)}class="c"{/if} href="{$MOD[linkurl]}list{deal_str($lst,'r')}.html">全部</a>
                                                       	{loop $mainarea $k $v}<a {if $areaid==$v[areaid]}class="c"{/if} href="{$MOD[linkurl]}list-r{$v[areaid]}{deal_str($lst,'r')}.html">{$v[areaname]}</a>{/loop}	
                                                </p>
                                    </div>
              
				<div class="cf">
					<span>类型：</span>
					&nbsp;&nbsp;
						<a {if empty($catid)}class="c"{/if} href="{$MOD[linkurl]}list{deal_str($lst,'t')}.html">全部</a>
                                                             {php $maincat = get_maincat(0,6)}
{loop $maincat $k $v}<a {if $catid==$v[catid]}class="c"{/if}  href="{$MOD[linkurl]}list{deal_str($lst,'t')}-t{$v[catid]}.html">{$v[catname]}</a>{/loop}
             </div>
				
			<div class="cf Letter">
					<span>首字母：</span>
					<p>
						<a {if empty($letter)}class="n c"{else}{/if} href="{$MOD[linkurl]}list{deal_str($lst,'j')}.html" >全部</a>
							    {php $l = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');}
{loop $l $k $v}<a {if $letter==$v}class="n c"{else}{/if} href="{$MOD[linkurl]}list{deal_str($lst,'j')}-j{$v}.html">{$v}</a>{/loop}
												</p>
				</div>
             
				
				{if !empty($lstaddr)}
				
				<div class="hs_sltd">
                        您已选择： {$lstaddr}  <a href="list.html" class="clear">重置筛选条件</a>
                    </div>
					{/if}
                			</div>		</div>
		<div class="cf">
			<div class="hlist_fl">
				<h2>
					<span class="hl_page">
						共为您找到 <b class="red">{$items}</b> 个小区<a class="pre" href="{$MOD[linkurl]}list{deal_str($lst,'g')}-g{if $page==1}1{else}{$page-1}{/if}.html"></a>{$page}						<a class="next" href="{$MOD[linkurl]}list{deal_str($lst,'g')}-g{if $page==$total}{$total}{else}{$page+1}{/if}.html">下一页</a>					</span>
					<span class="modTab">
					<a {if empty($hot)} class="on"{/if} href="list.html" >全部小区</a>
	                	
					
					</span>
				</h2>
				<div class="hlist_sort">
					<div class="cf">
						<form id="hls_search" action="{$MODULE[18][linkurl]}search.html" class="cf fl">
				
							<input type="search" id="hname" name="kw" placeholder="请输入小区名字" x-webkit-speech value="">
                
							<button  id="kwsearch" type="submit">搜索</button>
					</form>
						<div class="fr_1">
							<div class="hs_mlist" id="h_s1">默认排序								<ul>
                                    <li>
                                        <a href="list{deal_str($lst,'n')}.html">默认排序</a> 
                                    </li>
                                                                            <li>
                                            <a href="list{deal_str($lst,'n')}-n1.html">人气从高到低</a>
                                        </li>
                                        <li>
                                            <a href="list{deal_str($lst,'n')}-n2.html">人气从低到高</a>
                                        </li>
                                    								</ul>
							</div>
								<a href="{if $ord==1}list{deal_str($lst,'n')}-n2.html{else}list{deal_str($lst,'n')}-n1.html{/if}"  class="A1 {if $ord==1}down{/if}{if $ord==2}up{/if}">人气</a>
							
						</div>
					</div>
				</div>
                				
                	                  <!--{tag("moduleid=$moduleid&condition=status=3$dtype&areaid=$cityid&&pagesize=".$MOD[pagesize]."&page=$page&showpage=1&datetype=5&order=".$MOD[order]."&fields=".$MOD[fields]."&template=list-community")}-->
									  
				
			</div>
			<div class="hlist_fr">
				<div class="hlist_btn cf">
					<a href="{$MODULE[2][linkurl]}my.php?mid=5&action=add" class="obtn fl" target="_blank"><i class="edit"></i>发布出售</a>
					<a href="{$MODULE[2][linkurl]}" class="obtn fr" target="_blank"><i class="bag"></i>管理房源</a>
				</div>
                				<div class="lista">
					<h4>您最近浏览过的房源</h4>
					      <table>
                                                                    <tbody>
																	{loop $browseHouse $k $t} <tr>
                                        <td><a target="_blank" href="{$t[linkurl]}" title="{$t[title]}">{$t[housename]}</a></td>
                                        <td>&nbsp;{if $t[room]}{$t[room]}室{/if}{if $t[hall]}{$t[hall]}厅{/if}</td>
                                        <td>{$t[houseearm]}㎡</td>
                                        <td>&nbsp;{if $t[price]}{$t[price]}万{else}面议{/if}	</td>
                                    </tr>
                                            {/loop}
                                                            </tbody></table>
                        				</div>				<div class="lista">
					<h4><a href="{$MODULE[1][linkurl]}broken/" target="_blank" class="more">更多&gt;&gt;</a>经纪人排行</h4>
                     
                        <ul class="jjrl">
						<!--{tag("table=member&condition=groupid=6&areaid=$cityid&order=userid desc&pagesize=10&template=sale-jjr")}-->
                                           
                                                    </ul>
                    				</div>                
			</div>
		</div>
	
		
                  
        	</div>
	


<script>
seajs.use(["autofh","autoc","autab","cookie"],function(pk){

	$("#hname").autoC("{$MODULE[6][linkurl]}house.php?action=xiaoqu");
	$("#hota").autab("h2 span a","ul")
	$("#hs_more div").add("#h_s1,#h_s2").on({
		mouseenter:function(){
			$(this).find("ul").show()
		},
		mouseleave:function(){
			$(this).find("ul").hide()
		}
	})
	$("#hslist em.autoF").autofh()
	//$("#hslist").find("form").autofh()
	$("#hlist").on("mouseenter","li",function(){
		$(this).addClass('on')
	}).on("mouseleave","li",function(){
		$(this).removeClass('on')
	}).on("click","li",function(){
		$(this).find("h3 a")[0].click();
	}).on("click","a",function(e){
		e.stopPropagation();
	}).find("li").each(function(i){
		if(i%3==2)
			$(this).css("border-right","0")
	}).last().css("border-right","0")
	var $hotarea=$("#hotarea")
	$hotarea.on("mouseover","dt",function(){
		$hotarea.find("dd").hide().end().find("dt").removeClass("s");
		$(this).addClass("s").next().show();
	})
	var $hs_area=$("#hs_area").on("click",".hs_hide",function(){
		if($.cookie("hs_hide")){
			$hs_area.removeClass("on")
			$.cookie("hs_hide","")
		}else{
			$hs_area.addClass("on")
			$.cookie("hs_hide",1)
		}
	})
	if($hs_area.height()>32){
		$hs_area.addClass("hs_hidep").find(".hs_hide").css("display","inline-block")
	}
	if($.cookie("hs_hide")){
		$hs_area.addClass("on")
	}
	$("#pics_result").on("change",function(){
		var h=window.location.href;
		if($(this).prop("checked")&&h.indexOf("v4")<0){
			h=h.split(".htm")
			setTimeout(function() {
			window.location.href = h[0]+"-v4.html";
			}, 99)
		}else if(!$(this).prop("checked")&&h.indexOf("v4")>0){
			h=h.split("-v4")
			setTimeout(function() {
			window.location.href = h[0]+h[1];
			}, 99)
		}
	})
	$("#B1").click(function(){
		$.cookie("esf_list","3");
		window.location.reload();
	})
	$("#B2").click(function(){
		$.cookie("esf_list","1");
		window.location.reload();
	})
	$("#B3").click(function(){
		$.cookie("esf_list","2");
		window.location.reload();
	})
});
</script>
<script type="text/javascript">
	$("#esfindex").attr("class","on");
</script>
{template 'footer'}	